package com.vichat.gps.entity;


import javax.persistence.*;

/***************
 *author: autogen
 *version: 2018-10-08 09:18:36.073
 */
@Entity
@Table(name = "location_data",catalog = "gpsdb")
public class LocationData implements java.io.Serializable{

	private static final long serialVersionUID = 1L;
	


    public static final String TABLE = "location_data";

    /** */
	public static final String ALIAS_LOC_ID = "loc_id";
    /**用户ID */
	public static final String ALIAS_UID = "uid";
    /**经度 */
	public static final String ALIAS_LONGITUDE = "longitude";
    /**纬度 */
	public static final String ALIAS_LATITUDE = "latitude";
    /**详细地址 */
	public static final String ALIAS_ADDRESS = "address";
    /**精度 */
	public static final String ALIAS_PRE_CISION = "pre_cision";
    /**速度 */
	public static final String ALIAS_SPEED = "speed";
    /**定位类型 */
	public static final String ALIAS_LOC_TYPE = "loc_type";
    /**上传时间 */
	public static final String ALIAS_LOC_TIME = "loc_time";
    /**停留时长 */
	public static final String ALIAS_SUMTIME = "sumTime";
    /** */
	public static final String ALIAS_PARTY_ID = "party_id";
    /** */
	public static final String ALIAS_ORG_ID = "org_id";
    /** */
	public static final String ALIAS_ORG_CODE = "org_code";
	
	

 	@Id
@   GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "loc_id", unique = true, nullable = false)
    public java.lang.Long locId;
  
 	@Column(name = "uid")
    public java.lang.Long uid;
  
 	@Column(name = "longitude")
    public java.lang.String longitude;
  
 	@Column(name = "latitude")
    public java.lang.String latitude;
  
 	@Column(name = "address")
    public java.lang.String address = "";
  
 	@Column(name = "pre_cision")
    public java.lang.String preCision = "0.00";
  
 	@Column(name = "speed")
    public java.lang.String speed = "0.00";
  
 	@Column(name = "loc_type")
    public java.lang.Integer locType = 0;
  
 	@Column(name = "loc_time")
    public java.lang.Long locTime = 0l;
  
 	@Column(name = "sumTime")
    public java.lang.Long sumtime = 0l;
  
 	@Column(name = "party_id")
    public java.lang.Long partyId;
  
 	@Column(name = "org_id")
    public java.lang.Long orgId;
  
 	@Column(name = "org_code")
    public java.lang.String orgCode;
  





	public java.lang.Long getLocId() {
		return this.locId;
	}
	
	public void setLocId(java.lang.Long value) {
		this.locId = value;
	}

	public java.lang.Long getUid() {
		return this.uid;
	}
	
	public void setUid(java.lang.Long value) {
		this.uid = value;
	}

	public java.lang.String getLongitude() {
		return this.longitude;
	}
	
	public void setLongitude(java.lang.String value) {
		this.longitude = value;
	}

	public java.lang.String getLatitude() {
		return this.latitude;
	}
	
	public void setLatitude(java.lang.String value) {
		this.latitude = value;
	}

	public java.lang.String getAddress() {
		return this.address;
	}
	
	public void setAddress(java.lang.String value) {
		this.address = value;
	}

	public java.lang.String getPreCision() {
		return this.preCision;
	}
	
	public void setPreCision(java.lang.String value) {
		this.preCision = value;
	}

	public java.lang.String getSpeed() {
		return this.speed;
	}
	
	public void setSpeed(java.lang.String value) {
		this.speed = value;
	}

	public java.lang.Integer getLocType() {
		return this.locType;
	}
	
	public void setLocType(java.lang.Integer value) {
		this.locType = value;
	}

	public java.lang.Long getLocTime() {
		return this.locTime;
	}
	
	public void setLocTime(java.lang.Long value) {
		this.locTime = value;
	}

	public java.lang.Long getSumtime() {
		return this.sumtime;
	}
	
	public void setSumtime(java.lang.Long value) {
		this.sumtime = value;
	}

	public java.lang.Long getPartyId() {
		return this.partyId;
	}
	
	public void setPartyId(java.lang.Long value) {
		this.partyId = value;
	}

	public java.lang.Long getOrgId() {
		return this.orgId;
	}
	
	public void setOrgId(java.lang.Long value) {
		this.orgId = value;
	}

	public java.lang.String getOrgCode() {
		return this.orgCode;
	}
	
	public void setOrgCode(java.lang.String value) {
		this.orgCode = value;
	}


	
	public LocationData() {
	}
	
	public LocationData(boolean qryflag) {
	    if(qryflag){
	    		this.locId = null;
				this.uid = null;
				this.longitude = null;
				this.latitude = null;
				this.address = null;
				this.preCision = null;
				this.speed = null;
				this.locType = null;
				this.locTime = null;
				this.sumtime = null;
				this.partyId = null;
				this.orgId = null;
				this.orgCode = null;
			    }
	}


	public LocationData(
	    java.lang.Long inLocId,
	    java.lang.Long inUid,
	    java.lang.String inLongitude,
	    java.lang.String inLatitude,
	    java.lang.String inAddress,
	    java.lang.String inPreCision,
	    java.lang.String inSpeed,
	    java.lang.Integer inLocType,
	    java.lang.Long inLocTime,
	    java.lang.Long inSumtime,
	    java.lang.Long inPartyId,
	    java.lang.Long inOrgId,
		java.lang.String inOrgCode
	 ) {
		super();
				this.locId = inLocId;
				this.uid = inUid;
				this.longitude = inLongitude;
				this.latitude = inLatitude;
				this.address = inAddress;
				this.preCision = inPreCision;
				this.speed = inSpeed;
				this.locType = inLocType;
				this.locTime = inLocTime;
				this.sumtime = inSumtime;
				this.partyId = inPartyId;
				this.orgId = inOrgId;
				this.orgCode = inOrgCode;
			}

	@Transient
	private String userName = "";

	@Transient
	private String tel = "";

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}



}

